import globalMask from "./global-mask/index.vue";
import globalLoading from "./global-loading/index.vue";

const components = [
  { title: "globalMask", componentName: globalMask },
  { title: "globalLoading", componentName: globalLoading },
];
export default {
  install(app) {
    components.forEach((item) => {
      // 通过循环遍历数据批量注册组件
      app.component(item.title, item.componentName);
    });
  },
};
